package com.zmht.beike.biz;

import java.util.List;

import com.zmht.beike.core.BaseBiz;
import com.zmht.beike.dao.CAreaContentDAO;
import com.zmht.beike.po.TCareacontent;

public interface CAreaContentBiz extends BaseBiz {
	/**
	 * ������������
	 * @param careacontent
	 * @return
	 */
	public Integer saveLinyuContent(TCareacontent careacontent);
	
	/**
	 * ���sessionID �� ���ID ��ý��
	 * @param sessionId
	 * @param type
	 * @return
	 */
	public List findAreaContent(String sessionId,Integer type,int startIndex,int pageSize);
	/**
	 * ��ѯ�ܼ�¼��
	 * @param sessionId
	 * @param type
	 * @return
	 */
	public int findAreaContentTotal(String sessionId,Integer type);
	/**
	 * ���id ��ѯ
	 * @param id
	 * @return
	 */
	public TCareacontent findByID(java.io.Serializable id);
	/**
	 * ɾ��
	 * 
	 * @param careacontent
	 * @return
	 */
	public boolean delTCareacontent(java.io.Serializable careacontent);
	
	/**
	 * 更新
	 * @param careacontent
	 * @return
	 */
	public boolean upTCareacontent(TCareacontent careacontent);
	/**
	 * 根据hql 获得结果
	 * @return
	 */
	public List findByHQL(String hql);
	/**
	 * 直接获得dao
	 * @return
	 */
	public CAreaContentDAO getCareaContentDAO();
	/**
	 * 根据目标ID 和领域类型获得该类型下的所有记录 同时关联老师id
	 * @param sessionId
	 * @param type
	 * @param startIndex
	 * @param pageSize
	 * @return
	 */
	public List findAreaContentEdit(Integer targetID,Integer teacherId,Integer type,int startIndex,int pageSize);
	/**
	 * 获得总数
	 * @param targetID
	 * @param teacherId
	 * @param type
	 * @param startIndex
	 * @param pageSize
	 * @return
	 */
	public int findAreaContentEditTotal(Integer targetID,Integer teacherId,Integer type);
}
